<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Login extends CI_Controller {

	
	public function index()
	{

		$this->load->database();

		$query = $this->db->query('select * from user')->result_array();

		var_dump($query);


		$this->load->view('login/index',['title'=>'标题']);
	}

	public function out($num,$data='')
	{
		var_dump($num,$data);
		echo "login";
	}
}
